package com.software.project_view.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.software.project_view.entity.Block;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface BlockMapper extends BaseMapper<Block> {

    @Select("SELECT * FROM block ORDER BY timestamp DESC LIMIT 1")
    Block selectRecent();
}
